#import <UIKit/UIKit.h>
#import <EventKit/EKEvent.h>

#import "framework/FWListView.h"
#import "PIEventListAccess.h"
#import "PIEventTimeSummary.h"
#import "PICommon.h"
#import "PIEvent.h"
#import "PIEventStatus.h"


@class LITableView;
@class PIPlugin;
@class FWApplication;
@class FWColorIconView;
@class FWIconDotView;


@interface PIEventView : FWListView
{
    kPIEventViewStyle viewStyle;
    BOOL combineHighlight;
    BOOL pastEvent;
}

@property (retain) LILabel* startTime;
@property (retain) LILabel* endTime;
@property (retain) FWColorIconView* availability;
@property (retain) FWColorIconView* repeat;
@property (retain) FWColorIconView* attendees;
@property (retain) FWColorIconView* reminder;
@property (retain) PIEventTimeSummary* timeSummary;
@property (retain) FWColorIconView* alarm;
@property (retain) FWColorIconView* native;
@property (assign) BOOL combineHighlight;


- (id)initWithFrame:(CGRect)frame theme:(LITheme*)theme application:(FWApplication*)appl;
- (void)dealloc;

- (void)setViewForEvent:(PIEvent *)event  theme:(LITheme*)theme application:(FWApplication*)app style:(kPIEventViewStyle)style showDetail:(ShowDatesOptions)showDetails showCalendar:(BOOL)calendar showDate:(BOOL)showDate showAvailability:(BOOL)showAvail lowColour:(BOOL)lowColour sourceIcon:(ShowSourceIconOptions)sourceIcon emojiAfter:(BOOL)emojiAfter;

- (void)addHeader:(LITheme*)theme;
- (void)removeHeader;

@end
